
* balance table for socio-economic indicators

capture rm "$path_tables/Table1.tex"
texdoc init "$path_tables/Table1.tex"
tex \begin{tabular}{ L{10cm} C{2.2cm} C{2.2cm} } \hline \hline
tex  						& Study sample			&  National rural population		\\ \hline

tex \multicolumn{8}{l}{a) Household water quality tests} \\  \addlinespace
foreach var of global vars2_a {
tex ${lab_`var'}			& ${`var'_c_cclpg} 		& ${`var'_c_mics}			\\
tex 						& (${`var'_sd_cclpg}) 	& (${`var'_sd_mics})		\\
}

tex \hline
tex \multicolumn{8}{l}{b) Water source quality tests (primary water source)} \\ \addlinespace
foreach var of global vars2_b {
tex ${lab_`var'}			& ${`var'_c_cclpg} 		& ${`var'_c_mics}			\\
tex 						& (${`var'_sd_cclpg}) 	& (${`var'_sd_mics})		\\
}

tex \hline
tex \multicolumn{8}{l}{c) Other variables} \\ \addlinespace
foreach var of global vars2_c {
tex ${lab_`var'}			& ${`var'_c_cclpg} 		& ${`var'_c_mics}			\\
tex 						& (${`var'_sd_cclpg}) 	& (${`var'_sd_mics})		\\
}

tex \hline \hline
tex \end{tabular} 
texdoc close
eststo clear
